package com.study.spark.scala.summer.common

import com.study.spark.scala.summer.util.EnvCache

import scala.io.{BufferedSource, Source}

trait TDao {
  def readFile(path: String) = {
    val source: BufferedSource = Source.fromFile(EnvCache.get()+path)
    val lines = source.getLines().toList
    source.close()
    lines
  }
}
